/** 
 * 任务 
 */

import { apiGet, apiPost, apiPut, apiDelete } from '../../utils/Api';
import * as config from '../../constants/ConfigApi';

/** 添加*/
export async function taskAdd(params) {
  return apiPost(config.kUrlTask, params);
}
/** 删除*/
export async function taskDelete(params) {
  return apiDelete(config.kUrlTask, params);
}
/** 修改*/
export async function taskUpdate(params) {
  return apiPut(config.kUrlTask, params);
}
/** 列表*/
export async function taskList(params) {
  return apiGet(config.kUrlTask, params);
}